<%@ page import="org.apache.struts.validator.Resources" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">

      <div class="app_pageTitle">
        <span class="left"><bean:message bundle="appCommonRes" key="bp.taskReminder.title" /></span>
      </div> 
	    
      <div class="app_pageSubtitle">
        <span class="left"><bean:message bundle="appCommonRes" key="bp.taskReminder.title" /></span>
      </div> 
		  
		  <div class="blockWrap">
      <table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Account information">
       <tr> 
         <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.name" />:</td>
         <td class="labelField" width="80%"><bean:write name="taskReminderForm" property="name" /></td>
       </tr>
       <tr> 
           <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.minorName" />:</td>
           <td class="labelField" width="80%"><bean:write name="taskReminderForm" property="minorName" /></td>
       </tr>
       <tr> 
         <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.dueDate" />:</td>
         <td class="labelField" width="80%">
           <bean:write name="taskReminderForm" property="dueDate" formatKey="format.date.medium" />
         </td>
       </tr>
       <tr> 
         <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.priority" />:</td>
         <td class="labelField" width="80%">
           <bean:define id="processTaskpriority" name="taskReminderForm" property="priority"/>
	   <% String  priority = (String )pageContext.getAttribute("processTaskpriority"); %>
	   <%=  Resources.getMessage(request,priority) == null ? priority : Resources.getMessage(request,priority) %> 
         </td>
        </tr>
        <tr> 
          <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.processName" />:</td>
          <td class="labelField" width="80%">
            <bean:write name="taskReminderForm" property="processName" />
          </td>
         </tr>
         <tr> 
           <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.processInstanceName" />:</td>
           <td class="labelField" width="80%">
             <bean:write name="taskReminderForm" property="processInstanceName" />
           </td>
         </tr>
         <tr> 
           <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.instructions" />:</td>
           <td class="labelField" width="80%">
             <bean:write name="taskReminderForm" property="instructions" />
           </td>
	 </tr>
	 <tr> 
           <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.currentReminderDate" />:</td>
           <td class="labelField" width="80%">
             <bean:write name="taskReminderForm" property="currentReminderDate" formatKey="format.date.medium" /> 
           </td>
         </tr>

<html:form action="/taskReminder.do" method="post">

	 <tr> 
           <td class="label" width="20%"><bean:message bundle="appCommonRes" key="bp.taskReminder.changeReminderTo" />:</td>
           <td class="labelField" width="80%">
             <bvhtml:date name="taskReminderForm" property="newReminderDate" />

             <html:hidden property="newReminderDate.hour" value="0"/>
             <html:hidden property="newReminderDate.minute" value="1"/>
             <html:hidden property="newReminderDate.ind" value="0"/>
           </td>
         </tr>
         <tr> 
           <td class="label" width="20%">

             <input type="hidden" name="task_id" value='<bean:write name="taskReminderForm" property="taskID" />'>
             <input type="hidden" name="action" value="SETREMINDER" >
             <input type="hidden" name="exitURL" value="/loginPage.do" >
             <input type="submit" class="titleButton" value="<bean:message bundle="appCommonRes" key="bp.taskReminder.button.setReminder" />" >

</html:form>

           </td>

           <td class="label" width="20%">

<html:form action="/taskReminder.do" method="post">

             <input type="hidden" name="task_id" value='<bean:write name="taskReminderForm" property="taskID" />' >
             <input type="hidden" name="action" value="CANCEL" >
             <input type="hidden" name="hostPage" value="/loginPage.do" >
             <input type="submit" class="titleButton" value="<bean:message bundle="appCommonRes" key="bp.taskReminder.button.cancel" />" >

</html:form>

           </td>
         </tr>

       </table>
       </div>
     </td>
   </tr>
</table>
